using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using dender.dvdcover.core;

namespace dender.dvdcover.gui.custom
{
    /// <summary>
    /// Defines a Tab page that contains a part of a cover
    /// </summary>
    public class CoverTabPage : TabPage
    {
        private PartPicturebox mPartPictureBox;
        /// <summary>
        /// Gets the PartPictureBox of the CoverTabPage
        /// </summary>
        public PartPicturebox PartPictureBox
        {
            get { return mPartPictureBox; }
        }

        public CoverTabPage(string text, CoverPart part) : base (text)
        {
            PartPicturebox pictureBox = new PartPicturebox(part);
            //Due to known bug in mono, PictureBoxSizeMode.Zoom doesn't work under mono
            pictureBox.SizeMode = PictureBoxSizeMode.Zoom;
            this.mPartPictureBox = pictureBox;
            pictureBox.Dock = DockStyle.Fill;
            this.Controls.Add(pictureBox);
            this.Refresh();
        }

	
    }
}
